<template>
  <el-table-column label="状态" width="100px">
    <template slot-scope="scope">
      <el-tag
        type="success"
        class="tag-s"
        v-if="scope.row.statusName == '新活动'"
        >新活动</el-tag
      >
      <el-tag
        type="success"
        class="tag-w"
        v-else-if="scope.row.statusName == '进行中'"
        >进行中</el-tag
      >
      <el-tag
        type="success"
        class="tag-o"
        v-else-if="scope.row.statusName == '已完成'"
        >已完成</el-tag
      >
      <el-tag
        type="success"
        class="tag-e"
        v-else-if="scope.row.statusName == '已结束'"
        >新活动</el-tag
      >
      <el-tag
        type="success"
        class="tag-r"
        v-else-if="scope.row.statusName == '已暂停'"
        >已暂停</el-tag
      >
    </template>
  </el-table-column>
</template>
<script>
export default {
  name: "subTableItem_one",
  components: {},
  data() {
    return {};
  },
  methods: {},
  computed: {},
  watch: {},
};
</script>
<style lang="less" scoped>
.el-tag {
  font-size: 12px !important;
  line-height: 20px;
  padding: 0 6px;
  text-align: center;
  height: 20px;
  border: none;
  color: #fff;
}

.tag-s {
  background-color: #f2b612;
}
.tag-o {
  background-color: #41b6e6;
}
.tag-w {
  background-color: #8c4af5;
}
.tag-e {
  background-color: #1ebf89;
}
.tag-r {
  background-color: #e5415f;
}
</style>
